package com.ruoyi.finance.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 科目对象 financial_subject
 * 
 * @author 李伟
 * @date 2025-03-05
 */
public class FinancialSubject extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String name;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private String code;

    /** 类型 */
    @Excel(name = "类型")
    private Long subjectType;

    /** 余额方向 */
    @Excel(name = "余额方向")
    private Long balanceDirection;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 辅助核算 */
    private String auxiliaryAccounting;

    /** 上级科目id */
    private Long pid;

    /** 逻辑删除 */
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setSubjectType(Long subjectType) 
    {
        this.subjectType = subjectType;
    }

    public Long getSubjectType() 
    {
        return subjectType;
    }
    public void setBalanceDirection(Long balanceDirection) 
    {
        this.balanceDirection = balanceDirection;
    }

    public Long getBalanceDirection() 
    {
        return balanceDirection;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAuxiliaryAccounting(String auxiliaryAccounting) 
    {
        this.auxiliaryAccounting = auxiliaryAccounting;
    }

    public String getAuxiliaryAccounting() 
    {
        return auxiliaryAccounting;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("subjectType", getSubjectType())
            .append("balanceDirection", getBalanceDirection())
            .append("status", getStatus())
            .append("auxiliaryAccounting", getAuxiliaryAccounting())
            .append("pid", getPid())
            .append("isDel", getIsDel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
